<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$q = $_GET["q"];
include '../../../readcookie.php';
include '../../../db.php';
$sql = "SELECT * FROM SubEvent WHERE subevent_id = '" . $q . "'";

$result = mysql_query($sql);

while ($row = mysql_fetch_array($result)) {
    //echo $row["articleTITLE"];
    $sid = $row["subevent_id"];
    $stitle = $row["subevent_title"];
    $sstart = $row["subevent_start"];
    $sstop = $row["subevent_stop"];
    $sprice = $row["subevent_price"];
    $slocation = $row["subevent_location"];
    $scontent = $row["subevent_description"];
    $smorecontent =$row["subevent_more"];
    $simg = $row["subevent_img"];
    $svideo = $row["subevent_video"];
    $sdate = $row["subevent_date"];

    echo "
  <form action=\"plugin/extravaganza/cms/updatesubevent.php\"
   method=\"post\" display:none>

<TABLE BORDER=\"0\">
<TR style=\"visibility: hidden\">
    <TD>ID:</TD>
    <INPUT TYPE=\"TEXT\" NAME=\"id\" SIZE=\"70\" VALUE = \"" . $sid . "\">
  </TR>

  <TR>
    <TD>Title:</TD>
    <TD>
      <INPUT TYPE=\"TEXT\" NAME=\"title\" SIZE=\"70\" VALUE = \"" . $stitle . "\">
    </TD>
  </TR>
      <TR>
    <TD>Location:</TD>
    <TD>
      <INPUT TYPE=\"TEXT\" NAME=\"location\" SIZE=\"70\" VALUE = \"" . $slocation . "\">
    </TD>
  </TR>
   <TR>
    <TD>Date:</TD>
    <TD>
      <INPUT TYPE=\"TEXT\" NAME=\"date\" SIZE=\"70\" VALUE = \"" . $sdate . "\">
    </TD>
  </TR>
    <TR>
    <TD>Start:</TD>
    <TD>
      <INPUT TYPE=\"TEXT\" NAME=\"start\" SIZE=\"70\" VALUE = \"" . $sstart . "\">
    </TD>
  </TR>
      <TR>
    <TD>Stop:</TD>
    <TD>
      <INPUT TYPE=\"TEXT\" NAME=\"stop\" SIZE=\"70\" VALUE = \"" . $sstop . "\">
    </TD>
  </TR>
      <TD>Price:</TD>
    <TD>
      <INPUT TYPE=\"TEXT\" NAME=\"price\" SIZE=\"70\" VALUE = \"" . $sprice . "\">
    </TD>
  </TR>
    <TR>
    <TD>Content:</TD>
    <TD><textarea rows=\"5\" cols=\"80\" name=\"content\" wrap=\"physical\">" . $scontent . "</textarea> </TD>
  </TR>
    <TR>
    <TD>More:</TD>
    <TD><textarea rows=\"5\" cols=\"80\" name=\"mcontent\" wrap=\"physical\">" . $smorecontent . "</textarea> </TD>
    </TR>
        <TR>
    <TD>Image:</TD>
    <INPUT TYPE=\"TEXT\" NAME=\"img\" SIZE=\"70\" VALUE = \"" . $simg. "\">
    </TR>
        <TR>
    <TD>Video:</TD>
    <INPUT TYPE=\"TEXT\" NAME=\"video\" SIZE=\"70\" VALUE = \"" . $svideo . "\">
    </TR>

</TABLE>
<P><INPUT TYPE=\"SUBMIT\" VALUE=\"Save\" NAME=\"B1\">
<INPUT TYPE=\"SUBMIT\" VALUE=\"Delete\" NAME=\"B2\"></P>
</form>
";

}
?>
